import { asyncRoutes } from "."
// export const ROUTE_MAP={
//   Dashboard:LAYOUT,
//   Analysis:() => import('/@/views/dashboard/analysis/index.vue'),
//   Workbench:() => import('/@/views/dashboard/workbench/index.vue'),
//   NOT_FOUND:EXCEPTION_COMPONENT,
//   About:LAYOUT,
//   AboutPage: () => import('/@/views/sys/about/index.vue'),
//   Charts:LAYOUT,
//   BaiduMap:() => import('/@/views/demo/charts/map/Baidu.vue'),
//   AMap:() => import('/@/views/demo/charts/map/Gaode.vue'),
//   GoogleMap:() => import('/@/views/demo/charts/map/Google.vue'),
// }

const newRouters={}
function geneeateRouteMap(routes){
 return routes.map(route=>{
    if(route.children&&route.children.length>0){
      geneeateRouteMap(route.children)
    }
    newRouters[route.name]=route.component
    return route
  })
}
geneeateRouteMap(asyncRoutes)
export const ROUTE_MAP=newRouters

